package com.jianggy.proxy.jdk1;

import com.jianggy.proxy.UserDao;
import com.jianggy.proxy.UserDaoImpl;

public class App {

	public static void main(String[] args) {
		UserDao userDao = new UserDaoImpl();
		ProxyFactory<UserDao> factory = new ProxyFactory<UserDao>(userDao);
		UserDao proxy = factory.getProxy();
		proxy.deleteUser(1);
	}

}
